import './assets/main.css'
import "@/assets/fonts/iconfont.css"

import { createApp } from 'vue'
import App from './App.vue'
//引入路由实例对象
import router from './router'
//引入图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//引入国际化
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//引入弹窗
import {ElNotification} from 'element-plus';

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

  app.use(ElementPlus, {
    locale: zhCn,
  })
  // 挂载路由实例对象
app.use(router)

app.mount('#app')
